package com.example.speeddating.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.speeddating.dto.MatchDto;
import com.example.speeddating.entity.Match;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.speeddating.entity.User;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author tina
 * @since 2023-07-21 08:00:57
 */
public interface MatchService extends IService<Match> {

    public List<Long> selectMatchedUserId(Long userId);

    public Page<User> selectMatchUser(Integer pageNum,Integer pageSize,Long userId);

    void updateMatchByUserId(Long id);

    Integer getMatchNum(Long userId);

    Integer getMatchNum();

    Integer getTotalNum();

    void insertMatchUser(Long userId,Long matchId);

    Integer getLeaveNum(Long id);

    ArrayList<MatchDto> getWeekMatch();
}
